home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HBO Media Relations - Win…/Spring 1995 Programming
/
HBO Media Relations Winter and Spring 1995 Programming Vol 1.1.iso
/
pc
/
files
/
go_to
/
00001_Script_1
next >
Wrap
Text File
|
1995-01-08
|
3KB
|
70 lines
-- òò -- The following Lingo code is Copyright 1994 by David K. Anderson -- òò --
-- òò -- For one-time use by Judson Rosebush Company for HBO Programming Preview CD-ROM -- òò --
-- òò -- All Rights Reserved -- òò --
on startMovie
if the colordepth <> 8 then set the colordepth = 8
set the soundLevel = 5
InitIntro
end
-- This handler searches for an empty text file on the CD to determine the correct path to the Director files.
on InitIntro
global gMyPath, gFile
set the searchCurrentFolder = 0
if the machinetype = 256 then
-- Creat a list of potential drive names to be used when searching for the CD-ROM drive.
set PathList = ["C:\FILES\", "D:\FILES\", "E:\FILES\", "F:\FILES\", ¼
"G:\FILES\", "H:\FILES\", "I:\FILES\", "J:\FILES\", "K:\FILES\", "L:\FILES\", "M:\FILES\", "N:\FILES\", "O:\FILES\", "P:\FILES\", "Q:\FILES\", "R:\FILES\", "S:\FILES\", "T:\FILES\", "U:\FILES\", "V:\FILES\", "W:\FILES\", "X:\FILES\", "Y:\FILES\", "Z:\FILES\","EOL"]
set gMyPath = "C:\FILES\"
repeat with x = 1 to count(PathList)
set gMyPath = getAT(PathList, x)
set foo = ReadCDTestFile()
put foo && "Reading from disk:" && getAT(PathList, x)
if foo then exit repeat
if gMyPath = "EOL" then CantFindCD
end repeat
else
set gMyPath = "HBO_Media:FILES:"
set foo = ReadCDTestFile()
put foo
if NOT foo then CantFindCD
end if
end
-- This handler uses the FileIO XObject to determine whether the text file exists on the selected disk.
on ReadCDTestFile
global gFile, gMyPath, gTheProblem
put "READ CD ROUTINE"
if objectP(gFile) then gFile(mDispose)
if the machineType = 256 then
set TestPath = gMyPath & "FIND_ME.TXT"
else
set TestPath = gMyPath & "FIND_ME.TXT"
end if
set gFile = fileIO(mNew, "read", TestPath)
if NOT objectp( gFile ) then
put "NOT found"
return FALSE
else
gFile(mDispose)
put "Found!"
setAt the searchpath 1, gMyPath
return TRUE
end if
end
-- If the file can't be found, give up and go home.
on CantFindCD
if the machinetype = 256 then
alert "You don't seem to have the HBO Media CD-ROM loaded! Please make sure ¼
the CD is in the drive." & RETURN & RETURN & "Then restart the application."
else
alert "You don't seem to have the HBO Media CD-ROM loaded! Please make sure ¼
the CD is in the drive and that the" && QUOTE & "HBO" & QUOTE && "icon appears on the desktop." & RETURN & RETURN & "Then restart the application."
end if
quit
end